package com.voyage.common.exception;

import lombok.Getter;
import org.apache.http.HttpStatus;

/**
 *@Author: kangb on 2021/10/8 21:50
 *@param:
 *@return:
 *@Description: 统一异常处理
 */
@Getter
public class BadRequestException extends RuntimeException{

    private Integer status = 400;

    public BadRequestException(String msg){
        super(msg);
    }

    public BadRequestException(HttpStatus status, String msg){
        super(msg);
        this.status = 400;
    }
}
